﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="PubishPost.aspx.cs" ValidateRequest="false"
    Inherits="LabMS.Web.Post.BBS.PubishPost" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>在线交流 - 发起主题</title>
    <link type="text/css" rel="stylesheet" href="../../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../../style/ie7.css" />
    <![endif]-->
</head>
<body class="mainBody">
    <form id="uiForm" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        发起主题</label>
                </div>
            </div>
        </div>
        <div id="ui">
            <p>
                <span>主题:</span>
                <asp:TextBox ID="PostTitle" ToolTip="交流主题 - 必填项，字数为1到100之间" runat="server"></asp:TextBox>
            </p>
            <p>
                <span>所属版块:</span>
                <asp:Label ID="PlateName" runat="server" Style="width: auto; display: inline; font-weight: normal;"></asp:Label>
            </p>
            <p>
                <span>内容:</span>
                <asp:TextBox ID="PostContent" Columns="70" Rows="20" TextMode="MultiLine" ToolTip="交流内容 - 必填项，字数为1到1000之间"
                    runat="server"></asp:TextBox>
            </p>
            <p>
                <span></span>
                <asp:Button ID="BtnSubmit" CssClass="button" runat="server" Text="确认" OnClick="BtnSubmit_Click" />
                <input type="button" class="button" id="btnCancel" value="取消" />
            </p>
        </div>
    </form>

    <script type="text/javascript" src="../../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript" src="../../js/jQuery/jquery.tooltip.js"></script>

    <script type="text/javascript" src="../../js/jQuery/jquery.validate.js"></script>

    <script type="text/javascript" src="../../fckeditor/fckeditor.js"></script>

    <script type="text/javascript" src="../../js/site.js"></script>

    <script type="text/javascript">

        $(function(){
            /* 取消 */
            $("#btnCancel").click(function(){
                window.close();
            });

            $("#uiForm").validate({
                rules: {
                    PostTitle: {
                        required: true,
                        maxlength: 100
                    },
                    PostContent: {
                        required: true,
                        maxlength: 1000
                    }
                },
                messages: {
                    PostTitle: {
                        required: "交流主题不能为空",
                        maxlength: "交流主题长度必须小于100"
                    },
                    PostContent: {
                        required: "交流内容不能为空",
                        maxlength: "交流内容长度必须小于1000"
                    }
                }
            });

            var oFCKeditor = new FCKeditor('PostContent', 600, 400, 'BBS');
            oFCKeditor.ReplaceTextarea();
        });
    
    </script>

</body>
</html>
